<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: {2021/5/22}
 * Time: {20:40}
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

namespace app\common\validate;

use think\Validate;

class AdminUser extends Validate
{
    protected $rule = [
        "username" => "require|max:32",
        "password" => "require|max:64",
        "captcha" => "require|captcha"
    ];
    protected $message = [
        "username.require" => "用户名不能为空",
        "username.max" => "用户名长度最长不能超过32位字符",
        "password.require" => "请输入用户密码",
        "password.max" => "输入密码长度太长",
        "captcha.require" => "请输入验证码",
        "captcha.captcha" => "验证码输入错误"
    ];
    protected $scene = [
        "login" => ['useramdin', 'password', 'captcha']
    ];
}